Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@travino
travino / quotes.json
Created April 29, 2026 07:44
Lot of duplicates though
This file has been truncated, but you can view the full file.
{
"quotes": [
{
"quote": "",
"author": ""
},
{
"quote": "Life isn’t about getting and having, it’s about giving and being.",
"author": "Kevin Kruse"
@alvinsng
alvinsng / no-use-effect.md
Created March 17, 2026 20:00
Skill generated by Factory Droid
name no-use-effect
description Enforce the no-useEffect rule when writing or reviewing React code. ACTIVATE when writing React components, refactoring existing useEffect calls, reviewing PRs with useEffect, or when an agent adds useEffect "just in case." Provides the five replacement patterns and the useMountEffect escape hatch.

No useEffect

@DaBigHomie
DaBigHomie / pullupatl-investor-demo-frictionless-stack.md
Created April 29, 2026 07:38
Architecture plan outlining free and low-cost alternatives to the aspirational Frictionless stack (Wicket/AiFi/Lava) for Phase 1 investor demonstrations.

FRICTIONLESS Stack — Cost Reality & Free/Low-Cost Alternatives

Companion to FRICTIONLESS-INTEGRATION-PLAN.md.

The Frictionless plan (Wicket + AiFi + Lava.ai + Verizon 5G Edge) is the aspirational stack: it's the same one State Farm Arena runs, and that's exactly why it's expensive. None of the four vendors publish pricing, none have a free tier, and all four are sold to pro-sports clients. Realistic budgetary expectation for a 3-venue pilot:

Manage Multiple Claude Code Accounts

Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.

Steps

  1. Create Separate Config Directories
    mkdir ~/.claude-account1
    mkdir ~/.claude-account2
If your ISP is using PPPoE, lets set it up in your OpenWrt. Tested with DLink DIR-300(Rev.A) with OpenWrt Backfire 10.03.1.
Edit /etc/config/network. Under “WAN” section, set the configuration with:
config 'interface' 'wan'
option 'ifname' 'eth0.2'
option 'proto' 'pppoe'
option 'username' 'your-own-username'
option 'password' 'your-own-password'
option 'defaultroute' '1'
option 'peerdns' '1'